package com.example.backspring.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.backspring.entity.Book;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface BookMapper extends BaseMapper<Book> {
    @Insert("insert into book (id,name,author,price) values (#{id},#{name},#{author},#{price})")
    int addOneBook(String id, String name,String author,double price);

}
